package net.zjitc.controller;

import net.zjitc.common.ResponseResult;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@CrossOrigin
@RestController
public class ReportController {
    @GetMapping("reports/type/{typeId}")
    public ResponseResult report(@RequestParam Integer typeId) {
        ResponseResult result = new ResponseResult();
        if (typeId == null || typeId.equals("")) {
            result.setError("报表类型不能为空");
        } else {

        }

        return result;

    }
}
